Skip to content

NET_SDK_ALARMINFO_EX

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
typedef struct _net_sdk_alarminfo_ex
{
    DWORD dwAlarmType;   
    DWORD dwSensorIn;    
    DWORD dwChannel;     
    DWORD dwDisk;        
    char sensorName[36]; 
    char alarmTime[20];  
    unsigned int status; 
    char resv[124];      
} NET_SDK_ALARMINFO_EX;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_ALARMINFO_EX
{
    public UInt32 dwAlarmType;
    public UInt32 dwSensorIn;
    public UInt32 dwChannel;
    public UInt32 dwDisk;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
    public byte[] sensorName;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 20)]
    public byte[] alarmTime;
    public UInt32 status;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 124)]
    public byte[] resv;
}

Function Description

Alarm information structure.

Member Description

Member Type Remark
dwAlarmType DWORD For alarm type, refer to NET_SDK_N9000_ALARM_TYPE.
dwSensorIn DWORD Sensor alarm input port number.
dwChannel DWORD When the alarm is related to the channel, the channel number of the alarm is indicated, starting from 0, and when it is related to the door lock and door magnet, the number is indicated, both starting from 1.
dwDisk DWORD In case of disk alarm, it indicates the disk number that generates the alarm.
sensorName char[36] In case of sensor alarm, the name of the sensor.
alarmTime char[20] Alarm trigger time.
status unsigned int The status value, generally 1, indicates that the alarm is triggered, 0 means that the alarm disappears, and dwAlarmType is NET_SDK_N9000_ALARM_TYPE_DOORCONTACT_STATUS, NET_SDK_N9000_ALARM_TYPE_DOORLOCK_STATUS indicates the status value.
resv char[124] Reserved field.
Error Code